package com.javaee.term.mapper;

import com.javaee.term.model.SendProductList;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.BaseMapper;

import java.util.List;

public interface SendProductListMapper extends BaseMapper<SendProductList> {

    @Select("select * from send_product_list where contact_id = ${contactId }")
    List<SendProductList> selectByContactId(String contactId);

    @Select("select * from send_product_list where contact_id = ${contactId } and product_id=${productId}")
    List<SendProductList> selectByContactIdAndProductId(String contactId, String productId);

}